home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch17 / pi / roomfly / campath.inc < prev    next >
Encoding:
Text File  |  1994-08-03  |  2.1 KB  |  56 lines

  1. // Polyray include file: CAMPATH.INC
  2. // by Rob McGregor
  3. //
  4. // Spline path information for camera animation
  5.  
  6. /****************************************************************
  7.  Define 4 local 3-D control points as arrays for the camera path
  8.  along the x and z-axes...
  9.  
  10.  points: 
  11.    x-axis:   9.0,   9.0,   8.5,  5.0,  1, -2.0, -4, -1.0,  0.0,  0.0 
  12.    y-axis:   0.5,   0.5,   1.0,  1.5,  2,  2.5,  3,  3.5,  3.5,  3.5
  13.    z-axis: -12.0, -12.0, -10.5, -9.0, -6, -2.0,  2,  6.0, 10.0, 10.0
  14. *****************************************************************/
  15.  
  16. static define cam_n1x [  9.0,   9.0,   8.5,  5.0,  1, -2.0, -4]
  17. static define cam_n1y [  0.5,   0.5,   1.0,  1.5,  2,  2.5,  3]
  18. static define cam_n1z [-12.0, -12.0, -10.5, -9.0, -6, -2.0,  2]
  19.  
  20. static define cam_n2x [  9.0,   8.5,  5.0,  1, -2.0, -4, -1.0]
  21. static define cam_n2y [  0.5,   1.0,  1.5,  2,  2.5,  3,  3.5]
  22. static define cam_n2z [-12.0, -10.5, -9.0, -6, -2.0,  2,  6.0]
  23.  
  24. static define cam_n3x [  8.5,  5.0,  1, -2.0, -4, -1.0,  0.0]
  25. static define cam_n3y [  1.0,  1.5,  2,  2.5,  3,  3.5,  3.5]
  26. static define cam_n3z [-10.5, -9.0, -6, -2.0,  2,  6.0, 10.0]
  27.  
  28. static define cam_n4x [ 5.0,  1, -2.0, -4, -1.0,  0.0,  0.0]
  29. static define cam_n4y [ 1.5,  2,  2.5,  3,  3.5,  3.5,  3.5]
  30. static define cam_n4z [-9.0, -6, -2.0,  2,  6.0, 10.0, 10.0]
  31.  
  32. /****************************************************************
  33.  Define the "look at" coordinates.  The camera looks at the 
  34.  origin <0, 0, 0> until key frame 5, then pans to look at 
  35.  picture2, located at <0, 3.5, 10>
  36.  
  37.  points:
  38.    y-axis: 0, 0, 0, 0,  1,  1.5,  2.5,  3,  3.5,  3.5
  39.    z-axis: 0, 2, 5, 8, 10, 10.0, 10.0, 10, 10.0, 10.0
  40. *****************************************************************/
  41.  
  42. static define at_n1y [0, 0, 0, 0,  1,  1.5,  2.5]
  43. static define at_n1z [0, 2, 5, 8, 10, 10.0, 10.0]
  44.  
  45. static define at_n2y [0, 0, 0,  1,  1.5,  2.5,  3]
  46. static define at_n2z [2, 5, 8, 10, 10.0, 10.0, 10]
  47.  
  48. static define at_n3y [0, 0,  1,  1.5,  2.5,  3,  3.5]
  49. static define at_n3z [5, 8, 10, 10.0, 10.0, 10, 10.0]
  50.  
  51. static define at_n4y [0,  1,  1.5,  2.5,  3,  3.5,  3.5]
  52. static define at_n4z [8, 10, 10.0, 10.0, 10, 10.0, 10.0]
  53.  
  54.  
  55.  
  56.